package com.wut.easypoi.common.excel;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
import java.time.LocalDateTime;
import java.util.List;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 订单
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class OrderExcel {

    @Excel(name = "ID", width = 10, needMerge = true)
    private String id;

    @Excel(name = "订单号", width = 20, needMerge = true)
    private String orderSn;

    @Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss", needMerge = true)
    private LocalDateTime createTime;

    @Excel(name = "收货地址", width = 20, needMerge = true)
    private String receiverAddress;

    @ExcelEntity(name = "会员信息")
    private MemberExcel member;

    @ExcelCollection(name = "商品列表")
    private List<ProductExcel> productList;
}
